<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="js/vue.js"></script>
</head>
<body>
<!--这里是MVVM中的View-->
    <div id="app">
    <ul>
        <!-- <li v-for="(value,index) in list">{{index}}---{{value}}</li> -->
        <!-- <li v-for="(value,index) in 'abcdef'">{{index}}---{{value}}</li> -->
        <!-- <li v-for="(value,index) in 7">{{index}}---{{value}}</li> -->
        <li v-for="(value, key) in obj">{{key}}---{{value}}</li>
    </ul>
</div>
<script>
//这里是MVVM中的View Model
    let vue = new Vue({
    el: '#app',
//这里是MVVM中的Model
    data: {
        list:["张三","李四","王武","找刘"],
        obj:{
        name:"didi",
        age:18,
        gender:"woman"
    }
    },
    
    });
</script>
</body>
</html>